<?php

/*
 *  Author: Panos Sakkos
 *  Improved by: Basanas
 *  Returns all the categories that the given user is creator/owner
 */

function BL_get_categories_with_owner($id)
{
    $res = DB_categories_of_user($id, $categories);

    if ( $res == DB_ERROR_CANNOT_GET_CATEGORIES ) {
        return BL_GET_CATEGORIES_WITH_OWNER;
    }

    return $categories;
}

?>